#ifndef COMPILER_ONLINE
    #include"head.cpp"
#endif

void test1()
{
    vector<vector<string>> ret = Solution().solveNQueens(4);
    if((ret[0][0] == ".Q.." && ret[0][1] == "...Q" && ret[0][2] == "Q..." && ret[0][3] == "..Q.")
    && (ret[1][0] == "..Q." && ret[1][1] == "Q..." && ret[1][2] == "...Q" && ret[1][3] == ".Q.."))
        std::cout << "通过用例1... OK!" << std::endl;
    else std::cout << "没有通过用例1... fail!"  << std::endl;
}
void test2()
{
    vector<vector<string>> ret = Solution().solveNQueens(1);
    if(ret[0][0] == "Q") std::cout << "通过用例2... OK!" << std::endl;
    else std::cout << "没有通过用例2... fail!"  << std::endl;   
}
int main()
{
    test1();
    test2();
    return 0;
}